home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / SpriteFight 2002 v2.0a1 / SpriteCompiler.h < prev    next >
Encoding:
Text File  |  1994-03-08  |  1.4 KB  |  79 lines  |  [TEXT/KAHL]

  1. ///--------------------------------------------------------------------------------------
  2. //    SpriteCompiler.h
  3. //
  4. //    Created:    1/17/94
  5. //    By:            Tony Myles
  6. //
  7. //    Copyright: © 1994 Tony Myles, All rights reserved worldwide
  8. //
  9. //    Description:    constants, structures, and prototypes for the sprite compiler
  10. ///--------------------------------------------------------------------------------------
  11.  
  12.  
  13. #ifndef __SPRITECOMPILER__
  14. #define __SPRITECOMPILER__
  15.  
  16. #ifndef __SWCOMMON__
  17. #include "SWCommonHeaders.h"
  18. #endif
  19.  
  20. #ifndef __TYPES__
  21. #include <Types.h>
  22. #endif
  23.  
  24. #ifndef __QUICKDRAW__
  25. #include <QuickDraw.h>
  26. #endif
  27.  
  28. enum
  29. {
  30.     kMaxInstructionSize = 8,
  31.     kPixelCodeResType = 'PxCd'
  32. };
  33.  
  34.  
  35. typedef short PixelCode, *PixelCodePtr, **PixelCodeHdl;
  36.  
  37. typedef void (*BlitFuncPtr)(
  38.     long srcStride,
  39.     long destStride,
  40.     Ptr srcBaseAddr,
  41.     Ptr destBaseAddr);
  42.  
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47.  
  48. OSErr SWCompileColorIconResource(
  49.     short iconResID,
  50.     PixelCodeHdl* newPixCodeH);
  51.  
  52. OSErr SWParsePixels(
  53.     PixMapHandle srcPixMapH,
  54.     PixMapHandle maskPixMapH,
  55.     PixelCodeHdl* newPixCodeH);
  56.  
  57. OSErr SWSavePixelCodeResource(
  58.     PixelCodeHdl newPixCodeH,
  59.     short pixCodeResID);
  60.  
  61. OSErr SWCompileMaskScanLine(
  62.     PixelCodeHdl newPixCodeH,
  63.     Ptr maskPixelP,
  64.     long numberOfPixels,
  65.     Boolean isLastScanLine);
  66.  
  67. OSErr SWGeneratePreamble(
  68.     PixelCodeHdl srcPixCodeH);
  69.  
  70. OSErr SWGeneratePostamble(
  71.     PixelCodeHdl srcPixCodeH);
  72.  
  73. #ifdef __cplusplus
  74. };
  75. #endif
  76.  
  77. #endif
  78.  
  79.